@bookslinkregression
Feature: As a user I want to verify header menu books links

  Background: navigate to homepage
    Given user navigates to "http://demo.nopcommerce.com"

  @Verifybooksheadermenu
  Scenario Outline: I verify books link on header menu
    Given As a user I click on "<top-menu>" links
    And I verify page title "<pagetitle>"
    Then I "<sortbyvalue>"
    And I verify if sorted by value "http://demo.nopcommerce.com/books?orderby=10"
    And I click on Add to cart
    And I click on shopping cart link
    And I verify page title "nopCommerce demo store. Shopping Cart"
    And I verify "<product name>"

    Examples: 
      | product name                                           | top-menu          | pagetitle                                 | sortbyvalue                                              |
      | Cooking for Two                                        | Books             | nopCommerce demo store. Books             | http://demo.nopcommerce.com/books?orderby=10             |
      | Compaq Presario SR1519X Pentium 4 Desktop PC with CDRW | Computers         | nopCommerce demo store. Computers         | http://demo.nopcommerce.com/desktops?orderby=10          |
      | Sony DCR-SR85 1MP 60GB Hard Drive Handycam Camcorder   | Electronics       | nopCommerce demo store. Electronics       | http://demo.nopcommerce.com/camera-photo?orderby=10      |
      | V-Blue Juniors' Cuffed Denim Short with Rhinestones    | Apparel & Shoes   | nopCommerce demo store. Apparel & Shoes   | http://demo.nopcommerce.com/apparel-shoes?orderby=10     |
      | Poker Face                                             | Digital downloads | nopCommerce demo store. Digital downloads | http://demo.nopcommerce.com/digital-downloads?orderby=10 |
      | Black & White Diamond Heart                            | Jewelry           | nopCommerce demo store. Jewelry           | http://demo.nopcommerce.com/jewelry?orderby=10           |
      | $5 Virtual Gift Card                                   | Gift Cards        | nopCommerce demo store. Gift Cards        | http://demo.nopcommerce.com/gift-cards?orderby=10        |
